<template>
	<view>
		<header-vue bgColor="transparent" :backOpBg="true"></header-vue>
		<view class="swiper">
			<!-- <u-swiper height="100%" :list="list" @change="e => currentNum = e.current" :autoplay="false"
				:indicatorStyle="{right: '32rpx', bottom: '12rpx'}">
				<view slot="indicator" class="flex indicator-num">
					<text class="indicator-num__text font24">{{ currentNum + 1 }}/{{ list.length }}</text>
				</view>
			</u-swiper> -->
		</view>
		<view class="detail">
			<view class="white-box user">
				<view class="flex between">
					<view class="flex">
						<view class="font36 fontbold-500">刘德华</view>
						<view class="flex time-recent font20">最近可约18:00</view>
					</view>
					<view class="flex font28 dingwei">
						<i class="iconfont icon-dingwei"></i>
						2.3km
					</view>
				</view>
				<view class="flex start info font24">
					<image :src="IMAGE_URL + '/static/mine/sex.png'" class="sex"></image>
					<view>52岁</view>
					<view class="line"></view>
					<view>河北保定</view>
					<view class="line"></view>
					<view>5年经验</view>
				</view>
				<view class="flex start">
					<view class="flex font24 score">评分 5.0</view>
					<view class="flex font24 order-num">近60天接单90+</view>
				</view>
			</view>
			<view class="white-box font28">
				<view>从事家政服务5年，持有相关证书，如保洁师资格证。服务范围包括深度清洁、玻璃擦洗、油烟机拆洗等，熟悉各种家居场景的清洁难点。</view>
				<view class="fontbold-500 service-title">我的服务原则是：</view>
				<view v-for="item in 3" class="flex start service-list">
					<view class="dot"></view>
					<view class="font28">工具齐全一自带专业设备，避免交叉污染</view>
				</view>
			</view>
			<view class="white-box font28">
				<view class="flex between font24">
					<view class="flex">
						<view class="font30 fontbold-500 title">评价（10）</view>
					</view>
				</view>
				<view v-for="item in 2" class="comment-list">
					<view class="flex start info">
						<image :src="IMAGE_URL + '/static/login/bg.png'" class="avatar"></image>
						<view>
							<view class="nickname font28">用户名称</view>
							<view class="time">2025-04-01</view>
						</view>
					</view>
					<view class="flex start">
						<i class="iconfont icon-starFull font24"></i>
						<i class="iconfont icon-star font24"></i>
						<view class="font20" style="color: #FF4141;">满意</view>
					</view>
					<view style="margin: 20rpx 0;">第1次购买这家的牛肉粉，挺好吃的，里面的牛肉担保之也很高，是和养身的人吃，值得回购。</view>
					<view class="flex between" style="flex-wrap: wrap;">
						<image v-for="item in 3" :src="IMAGE_URL + '/static/login/bg.png'" class="image-list"></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import headerVue from '@/components/header.vue';
	import appConfig from '@/config/app.js'

	export default {
		data() {
			return {
				IMAGE_URL: appConfig.IMAGE_URL,
				list: [],
			}
		},
		components: {
			headerVue,
		},
		mounted() {

		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	.btn-header .flex {
		width: 48rpx;
		height: 48rpx;
		background: rgba(0, 0, 0, 0.2);
		border-radius: 50%;
		color: $uni-text-color-inverse;
		margin-left: 20rpx;
	}

	.swiper {
		position: absolute;
		top: 0;
		width: 100%;
		height: 400rpx;
		z-index: -1;

		.indicator-num {
			width: 54rpx;
			height: 30rpx;
			background: rgba(0, 0, 0, 0.2);
			border-radius: 4rpx;
			color: $uni-text-color-inverse;
		}
	}

	.detail {
		background: #F6F6F6;
		position: absolute;
		top: 400rpx;
		width: 100%;
		padding-bottom: calc(env(safe-area-inset-bottom) + 88rpx);

		.white-box {
			padding: 28rpx 32rpx;
			box-sizing: border-box;
			background: $uni-bg-color;
			margin-bottom: 20rpx;
		}

		.user {
			.time-recent {
				width: 152rpx;
				height: 36rpx;
				border-radius: 4rpx 4rpx 4rpx 4rpx;
				border: 1rpx solid #F0E6D5;
				color: #DF9824;
				margin-left: 8rpx;
			}

			.sex {
				width: 40rpx;
				height: 40rpx;
				margin-right: 12rpx;
			}

			.info {
				color: #999;
				margin: 20rpx 0 16rpx 0;
			}

			.line {
				height: 24rpx;
				width: 2rpx;
				background: #DDDDDD;
				margin: 0 12rpx;
			}

			.dingwei {
				color: $uni-text-color-grey1;
			}

			.score {
				width: 130rpx;
				height: 44rpx;
				background: #FF4141;
				border-radius: 60rpx;
				color: $uni-text-color-inverse;
			}

			.order-num {
				color: $uni-text-color-grey;
				margin-left: 20rpx;
			}
		}
		
		.service-title {
			color: #0785CF;
			margin-top: 28rpx;
		}
		
		.service-list {
			margin-top: 28rpx;
			color: $uni-text-color-grey1;
			
			.dot {
				width: 10rpx;
				height: 10rpx;
				background: #DF9824;
				border-radius: 50%;
				margin-right: 16rpx;
			}
		}

		.comment-list {
			margin-top: 28rpx;

			.avatar {
				width: 76rpx;
				height: 76rpx;
				border-radius: 50%;
				margin-right: 20rpx;
			}

			.info {
				margin-bottom: 20rpx;
				color: $uni-text-color-grey1;
			}
			
			.time {
				font-size: 24rpx;
				color: $uni-text-color-grey;
				margin-top: 8rpx;
			}
			
			.image-list {
				width: calc((100% - 48rpx) / 3);
				height: 222rpx;
				border-radius: 16rpx;
				margin-right: 24rpx;
				
				&:nth-child(3n) {
					margin-right: 0;
				}
			}
			
			.icon-star {
				color: $uni-text-color-grey1;
			}
			
			.icon-starFull {
				color: #FF4141;
			}
		}
	}
</style>